export default class gameover extends Laya.Script {

    constructor() { 
        super(); 
        /** @prop {name:btn_start, tips:"整数类型示例", type:Node, default:null}*/
        this.btn_start=null;
        // 更多参数说明请访问: https://ldc2.layabox.com/doc/?nav=zh-as-2-4-0
    }
    onAwake(){
        Laya.stage.on("gameover",this,this.over)
        this.btn_start.on(Laya.Event.CLICK,this,this.start)
    }
    over(){
        
        this.owner.visible=true;
    }
    start(){
        this.owner.visible=false;
        Laya.stage.event("start")
    }

}